import request from '@/utils/request'

// 发布新文章的请求
export const addArticleAPI = fd => {
  return request.post('/my/article/add', fd)
}

// 获取文章的列表数据的请求
export const getArticleAPI = query => {
  return request.get('/my/article/list', { params: query })
}
